// 它包含静态路由和  应用的动态路由
import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router"
import loginVue from "./views/system/login/login.vue"

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    redirect: "/login", 
    component: loginVue
  },
  { path: '/login', component: loginVue },
  { path: '/forget-password', component: loginVue },
]


export const router = createRouter({
  history: createWebHashHistory(),
  routes, // `routes: routes` 的缩写

})
